<?php
/**
 * 获取benchmark通道日志相关数据
 * yumao
 * 2018-4-28
 */
namespace app\controllers\crontab;
use app\components\EmailMarket;
use app\components\channel\Channel;
use yii;
class GetBenchmarkChannelReturnDataController extends \app\base\Controller
{
    
    /**
     * 获取联系人名单信息
     */
    public function actionReportGet()
    {
        ignore_user_abort(true); 
        set_time_limit(0);
        $channel = new Channel();
        $channel->getBenchmarkData('reportGet'); // 获取联系人列表
    }
    
    /**
     * 获取各类日志数据
     */
    public function actionGetLogData()
    {
        ignore_user_abort(true); 
        set_time_limit(0);
        $channel = new Channel();
        $mothod = strtolower(Yii::$app->request->getMethod());
        $dealSiteId = Yii::$app->request->$mothod('deal_site_id');
        if (empty($dealSiteId)) {
            $dealSiteId = 0;
        }
        try {
            $channel->getBenchmarkData('getLogData',$dealSiteId); // 获取各类日志数据
        } catch (\Exception $ex) {
            var_dump($ex->getMessage());
        }
    }
} 